The Dreamweaver JavaScript API > File manipulation functions > dreamweaver.getFontStyles()

 

dreamweaver.getFontStyles()

Availability

Dreamweaver 4.0

Description

Returns the styles that a specified TrueType font supports.

Arguments

fontName

fontName is a string containing the name of the font.

Returns

An array of three Boolean values indicating what the font supports. The first indicates whether or not the font supports Bold, the second Italic, and the third whether or not the font supports both Bold and Italic together.